package com.tesco.entity.domin;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;


@Data
@TableName("yg_goods")
public class YgGoods extends Model<YgGoods> {
    /**
     * 商品id
     */
    @TableId(value = "spid",type = IdType.AUTO)
    private Integer spid;
    
    /** 
     *商品名 
     */
    @TableField(value = "spname")
    private String spname;
    
    /** 
     *商家名 
     */
    @TableField(value = "sjname")  
    private String sjname;

    /**
     * 公司名
     */
    @TableField(value = "gsname")
    private String gsname;

    /** 
     *库存 
     */
    @TableField(value = "kcnum")  
    private Integer kcnum;
    
    /** 
     *价格 
     */
    @TableField(value = "price")  
    private BigDecimal price;
    
    /** 
     *介绍 
     */
    @TableField(value = "text")  
    private String text;
    
    /** 
     *商品图片 
     */
    @TableField(value = "spurl")  
    private String spurl;
    
    /** 
     *创建时间 
     */
    @TableField(value = "createdat")  
    private Date createdat;

    public static final String COL_SPID = "spid";
     
    public static final String COL_SPNAME = "spname";
     
    public static final String COL_SJNAME = "sjname";
     
    public static final String COL_KCNUM = "kcnum";
     
    public static final String COL_PRICE = "price";
     
    public static final String COL_TEXT = "text";
     
    public static final String COL_SPURL = "spurl";
     
    public static final String COL_CREATEDAT = "createdat";
     

}

